//
//  TreeNode.h
//  LearnObjectiveC
//
//  Created by client on 2017/9/11.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TreeNode : NSObject
@property(nonatomic,strong) NSString * name;
@property(nonatomic,strong) TreeNode * parent;
@property(nonatomic,strong,readonly) NSMutableArray * childrens;

-(instancetype)initWithName:(NSString*)name;


-(void)addNode:(TreeNode*)node;

-(void)removeNode:(TreeNode*)node;

-(NSArray*)getChildrens;

@end
